home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
msdos
/
raytrace
/
pov
/
gen
/
xtal4pov
/
platon.inc
< prev
next >
Wrap
Text File
|
1994-04-09
|
3KB
|
70 lines
/* PLATON.INC
This is the crystallographically correct include-file
for the so-called platonic solids. The fifth shape, the cube
or hexahedron, can be taken from the standard include-file.
All shapes are scaled to fit into the unit cube.
Dr. Klaus Kosten
Inst. f. Kristallographie der RWTH, Aachen, 09.04.94
*/
#version 2.0
#declare Tetrahedron = intersection {
plane { < 1.000, 1.000, 1.000 >, 0.577 }
plane { < -1.000, -1.000, 1.000 >, 0.577 }
plane { < -1.000, 1.000, -1.000 >, 0.577 }
plane { < 1.000, -1.000, -1.000 >, 0.577 }
}
#declare Octahedron = intersection {
plane { < 1.000, 1.000, 1.000 >, 0.577 }
plane { < -1.000, -1.000, 1.000 >, 0.577 }
plane { < -1.000, 1.000, -1.000 >, 0.577 }
plane { < 1.000, -1.000, -1.000 >, 0.577 }
plane { < 1.000, 1.000, -1.000 >, 0.577 }
plane { < -1.000, -1.000, -1.000 >, 0.577 }
plane { < 1.000, -1.000, 1.000 >, 0.577 }
plane { < -1.000, 1.000, 1.000 >, 0.577 }
}
#declare Dodecahedron = intersection {
plane { < 1.0000, 0.0000, 0.6181 >, 0.7239 }
plane { < -0.6181, 1.0000, 0.0000 >, 0.7239 }
plane { < -0.6181, -1.0000, 0.0000 >, 0.7239 }
plane { < -1.0000, 0.0000, 0.6181 >, 0.7239 }
plane { < 0.0000, -0.6181, -1.0000 >, 0.7239 }
plane { < 0.0000, 0.6181, -1.0000 >, 0.7239 }
plane { < 0.6181, -1.0000, 0.0000 >, 0.7239 }
plane { < 0.0000, -0.6181, 1.0000 >, 0.7239 }
plane { < 0.0000, 0.6181, 1.0000 >, 0.7239 }
plane { < 0.6181, 1.0000, 0.0000 >, 0.7239 }
plane { < -1.0000, 0.0000, -0.6181 >, 0.7239 }
plane { < 1.0000, 0.0000, -0.6181 >, 0.7239 }
}
#declare Icosahedron = intersection {
plane { < -0.3822, 0.0000, 1.0000 >, 0.8723 }
plane { < 0.0000, -1.0000, 0.3822 >, 0.8723 }
plane { < 0.0000, 1.0000, 0.3822 >, 0.8723 }
plane { < 1.0000, -1.0000, -1.0000 >, 0.8723 }
plane { < 1.0000, 1.0000, -1.0000 >, 0.8723 }
plane { < 0.3822, 0.0000, 1.0000 >, 0.8723 }
plane { < -1.0000, -1.0000, -1.0000 >, 0.8723 }
plane { < -1.0000, -0.3822, 0.0000 >, 0.8723 }
plane { < 1.0000, -0.3822, 0.0000 >, 0.8723 }
plane { < 1.0000, 0.3822, 0.0000 >, 0.8723 }
plane { < -1.0000, 0.3822, 0.0000 >, 0.8723 }
plane { < -1.0000, 1.0000, -1.0000 >, 0.8723 }
plane { < -1.0000, -1.0000, 1.0000 >, 0.8723 }
plane { < 0.3822, 0.0000, -1.0000 >, 0.8723 }
plane { < 1.0000, -1.0000, 1.0000 >, 0.8723 }
plane { < -1.0000, 1.0000, 1.0000 >, 0.8723 }
plane { < 0.0000, -1.0000, -0.3822 >, 0.8723 }
plane { < 1.0000, 1.0000, 1.0000 >, 0.8723 }
plane { < -0.3822, 0.0000, -1.0000 >, 0.8723 }
plane { < 0.0000, 1.0000, -0.3822 >, 0.8723 }
}